package Anonymous01;

public class TestAnimal {
    public static void main(String[] args) {
        Animal stupidCat = new Animal("Taylor", 9) {
            @Override
            public void eat() {
                System.out.println("Stupid cat eats zombie mouse.");
            }
        };

        stupidCat.eat();
        System.out.println(stupidCat.getClass());

        new Animal() {
            @Override
            public void eat() {
                System.out.println("Unknown animal eats huma*^&*  ()*&_)&dfjakdaks");
            }
        }.eat();

        Cat c = new Cat();
        c.meow();
    }
}
